package controller

import (
	"github.com/gin-gonic/gin"
)

func Rtn(c *gin.Context, msg string, data interface{}) {
	c.JSON(200, gin.H{
		"status":  1,
		"message": msg,
		"data":    data,
	})
}

func RtnErr(c *gin.Context, msg string, data interface{}) {
	c.JSON(200, gin.H{
		"status":  -1,
		"message": msg,
		"data":    data,
	})
}
